home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / GRAPHICS / RAYTRACING / POVRAY3 / POV301 / povray3 / docsdemo / pov / laytex < prev    next >
Text File  |  1997-01-21  |  1KB  |  52 lines

  1. #include "colors.inc"
  2. #include "textures.inc"
  3.  
  4. camera { 
  5.   location <0, 5, -30> 
  6.   look_at <0, 0, 0> 
  7. }
  8.  
  9. light_source { <-20, 30, -50> color White }
  10.  
  11. plane { y, 0 pigment { checker color Green color Yellow  } }
  12.  
  13. background { rgb <.7, .7, 1> }
  14.  
  15. box { <-10, 0, -10>, <10, 10, 10>
  16.   texture { 
  17.     Silver_Metal // a metal object ...
  18.     normal {     // ... which has suffered a beating
  19.       dents 2 
  20.       scale 1.5 
  21.     }
  22.   } // (end of base texture)
  23.  
  24.   texture { // ... has some flecks of rust ...
  25.     pigment {  
  26.       granite
  27.       color_map {
  28.         [0.0 rgb <.2, 0, 0> ]
  29.         [0.2 color Brown ]
  30.         [0.2 rgbt <1, 1, 1, 1> ]
  31.         [1.0 rgbt <1, 1, 1, 1> ]
  32.       } 
  33.       frequency 16
  34.     }
  35.   } // (end rust fleck texture)
  36.  
  37.   texture { // ... and some sooty black marks
  38.     pigment {
  39.       bozo                
  40.       color_map {
  41.         [0.0 color Black ]
  42.         [0.2 color rgbt <0, 0, 0, .5> ]
  43.         [0.4 color rgbt <.5, .5, .5, .5> ]
  44.         [0.5 color rgbt <1, 1, 1, 1> ]
  45.         [1.0 color rgbt <1, 1, 1, 1> ]
  46.       } 
  47.       scale 3
  48.     }
  49.   } // (end of sooty mark texture)
  50.  
  51. } // (end of box declaration)
  52.